package com.cyou.qb.face.service.mock;
/**
 * GameInfo接口的mock实现
 * @author wangwenlong
 */
import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Component;
import com.cyou.qb.face.entity.Face173AccessLog;
import com.cyou.qb.face.entity.GameInfo;
import com.cyou.qb.face.entity.NameValue;
import com.cyou.qb.face.entity.VideoInfo;
import com.cyou.qb.face.service.GetGameInfoService;
import com.cyou.qb.face.service.impl.BaseFaceServiceimpl;

@Component("QbGameMock")
public class GetGameInfoServiceMock extends BaseFaceServiceimpl implements GetGameInfoService{

	@Override
	public GameInfo getFrontGameInfo(String gamecode) {
		
		Face173AccessLog accessLog = getAccessLog();
		accessLog.setCallService(this.getClass().getName());
		accessLog.setCallServiceParam("http://i1.17173.itc.cn/2011/newgame/newgamepic");
		GameInfo gameInfo = new GameInfo();
		gameInfo.setGameBBSLink("http://i1.17173.itc.cn/2011/newgame/newgamepic");
		gameInfo.setGamecode(gamecode);
		gameInfo.setGameDeveloper("盛大");
		gameInfo.setGameDownLoadLink("http://i1.17173.itc.cn/2011/newgame/newgamepic");
		gameInfo.setGameLink("www.wow.com");
		gameInfo.setGameName("暗黑3");
		gameInfo.setGameOperator("盛大");
		gameInfo.setGameType("角色扮演");
		gameInfo.setGameZoneLink("www.anheisan.com");
		gameInfo.setIconLink("http://i1.17173.itc.cn/2011/newgame/newgamepic");
		return gameInfo;
	}

	@Override
	public GameInfo getGameInfo(String gamecode) {

		Face173AccessLog accessLog = getAccessLog();
		accessLog.setCallService(this.getClass().getName());
		accessLog.setCallServiceParam("http://i1.17173.itc.cn/2011/newgame/newgamepic");
		GameInfo gameInfo = new GameInfo();
		gameInfo.setGameBBSLink("http://i1.17173.itc.cn/2011/newgame/newgamepic");
		gameInfo.setGamecode(gamecode);
		gameInfo.setGameDeveloper("畅游1");
		gameInfo.setGameDownLoadLink("http://i1.17173.itc.cn/2011/newgame/newgamepic");
		gameInfo.setGameLink("www.wow.com");
		gameInfo.setGameName("天龙八部1");
		gameInfo.setGameOperator("畅游1");
		gameInfo.setGameType("角色扮演1");
		gameInfo.setGameZoneLink("www.anheisan.com");
		
		return gameInfo;
	}


	@Override
	public List<NameValue> getGameNameInfo() {
		
		Face173AccessLog accessLog = getAccessLog();
		accessLog.setCallService(this.getClass().getName());
		accessLog.setCallServiceParam("http://i1.17173.itc.cn/2011/newgame/newgamepic");
		List<NameValue> gameNamelist = new ArrayList<NameValue>(); 
		gameNamelist.add(new NameValue("123417","天龙八部1","www.baidu1.com"));
		gameNamelist.add(new NameValue("123428","天龙八部2","www.baidu2.com"));
		gameNamelist.add(new NameValue("123439","天龙八部3","www.baid3u.com"));
		gameNamelist.add(new NameValue("123440","天龙八部4","www.baid4u.com"));
		gameNamelist.add(new NameValue("123451","天龙八部5","www.baidu5.com"));
		gameNamelist.add(new NameValue("123462","天龙八部6","www.baid6u.com"));
		gameNamelist.add(new NameValue("123473","天龙八部7","www.baid78u.com"));
		gameNamelist.add(new NameValue("123484","天龙八部8","www.baidu9.com"));
		gameNamelist.add(new NameValue("123495","天龙八部9","www.baidu0.com"));
		gameNamelist.add(new NameValue("123406","天龙八部10","www.baid11u.com"));
		gameNamelist.add(new NameValue("123517","天龙八部11","www.baid23u.com"));
		gameNamelist.add(new NameValue("123528","天龙八部12","www.baid34u.com"));
		gameNamelist.add(new NameValue("123539","天龙八部13","www.baid45u.com"));
		gameNamelist.add(new NameValue("123540","天龙八部14","www.baid56u.com"));
		gameNamelist.add(new NameValue("123551","天龙八部15","www.baidu67.com"));
		return gameNamelist;
	}

	@Override
	public List<NameValue> getGameTypeInfo() {
		
		Face173AccessLog accessLog = getAccessLog();
		accessLog.setCallService(this.getClass().getName());
		accessLog.setCallServiceParam("http://i1.17173.itc.cn/2011/newgame/newgamepic");
		List<NameValue> gameTypeList = new ArrayList<NameValue>();
		
		gameTypeList.add(new NameValue("1","角色扮演1","www.baidu1.com"));
		gameTypeList.add(new NameValue("2","角色扮演2","www.baidu2.com"));
		gameTypeList.add(new NameValue("3","角色扮演3","www.baidu3.com"));
		gameTypeList.add(new NameValue("4","角色扮演4","www.baidu4.com"));
		gameTypeList.add(new NameValue("5","角色扮演5","www.baidu5.com"));
		gameTypeList.add(new NameValue("6","角色扮演6","www.baidu6.com"));
		return gameTypeList;
	}
	@Override
	public List<NameValue> getGameNews(String gamecode) {
		Face173AccessLog accessLog = getAccessLog();
		accessLog.setCallService(this.getClass().getName());
		accessLog.setCallServiceParam("http://i1.17173.itc.cn/2011/newgame/newgamepic");
		List<NameValue> gameDynamicList = new ArrayList<NameValue>();
		
		gameDynamicList.add(new NameValue("国外大作来PK！2012年8月精选试玩TOP10","http://i1.17173.itc.cn/2011/newgame/newgamepic","www.baidu.com"));
		gameDynamicList.add(new NameValue("国外大作来PK！2012年8月精选试玩TOP10","http://i1.17173.itc.cn/2011/newgame/newgamepic","www.baidu.com"));
		gameDynamicList.add(new NameValue("国外大作来PK！2012年8月精选试玩TOP10","http://i1.17173.itc.cn/2011/newgame/newgamepic","www.baidu.com"));
		gameDynamicList.add(new NameValue("国外大作来PK！2012年8月精选试玩TOP10","http://i1.17173.itc.cn/2011/newgame/newgamepic","www.baidu.com"));
		gameDynamicList.add(new NameValue("国外大作来PK！2012年8月精选试玩TOP10","http://i1.17173.itc.cn/2011/newgame/newgamepic","www.baidu.com"));
		
		return gameDynamicList;  
	}

	@Override
	public List<VideoInfo> getGameVideoInfo(String gamecode) {
		Face173AccessLog accessLog = getAccessLog();
		accessLog.setCallService(this.getClass().getName());
		accessLog.setCallServiceParam("http://i1.17173.itc.cn/2011/newgame/newgamepic");
		List<VideoInfo> gameVideoList = new ArrayList<VideoInfo>();
		
		gameVideoList.add(new VideoInfo(null,"国外大作来PK！2012年8月精选试玩TOP10","http://i1.17173.itc.cn/2011/newgame/newgamepic","http://i1.17173.itc.cn/2011/newgame/newgamepic"));
		gameVideoList.add(new VideoInfo(null,"国外大作来PK！2012年8月精选试玩TOP10","http://i1.17173.itc.cn/2011/newgame/newgamepic","http://i1.17173.itc.cn/2011/newgame/newgamepic"));
		gameVideoList.add(new VideoInfo(null,"国外大作来PK！2012年8月精选试玩TOP10","http://i1.17173.itc.cn/2011/newgame/newgamepic","http://i1.17173.itc.cn/2011/newgame/newgamepic"));
		gameVideoList.add(new VideoInfo(null,"国外大作来PK！2012年8月精选试玩TOP10","http://i1.17173.itc.cn/2011/newgame/newgamepic","http://i1.17173.itc.cn/2011/newgame/newgamepic"));
		return gameVideoList;
	}

}
